package io.qytc.jboot.api;

import io.jboot.components.rpc.annotation.RPCInject;
import io.jboot.web.controller.annotation.RequestMapping;
import io.qytc.jboot.base.common.RestResult;
import io.qytc.jboot.base.web.base.BaseController;
import io.qytc.jboot.service.api.UserService;


@RequestMapping("/api/v1/consumed")
public class userApi extends BaseController {

    @RPCInject
    UserService userService;

    public void aa(){
        boolean admin = userService.hasUser("admin");
        renderJson(RestResult.buildSuccess(admin));
    }

}
